<?php if ($this->get('module')->getEnabled()): ?><span class="disable" >
  <input type="hidden" name="switch[<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>][old]" value="1" />
  <input
    type="checkbox"
    name="switch[<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>][new]"
    <?php if (!($this->canDisable($this->get('module')))){?> disabled="disabled"<?php }?>
    checked="checked"
    id="switch<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>" />
  <label for="switch<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>"><?php echo func_htmlspecialchars($this->t('Enabled'));?></label>
</span><?php endif; ?>

<?php if (!($this->get('module')->getEnabled())): ?><span class="enable" >
  <input type="hidden" name="switch[<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>][old]" value="0" />
  <input
    type="checkbox"
    name="switch[<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>][new]"
    <?php if (!($this->canEnable($this->get('module')))){?> disabled="disabled"<?php }?>
    id="switch<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>" />
  <label for="switch<?php echo func_htmlspecialchars($this->get('module')->getModuleId());?>"><?php echo func_htmlspecialchars($this->t('Enabled'));?></label>
</span><?php endif; ?>
